package com.example.controller;


import com.alibaba.fastjson.JSONObject;
import com.example.service.refundService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class refundController {

    @Autowired()
    private refundService refundService;





    @PostMapping("/v1/refund")
    public String refund(@RequestBody JSONObject reqJson) {
        log.info("退款前端请求的参数：--------------------------------->>>{}",reqJson);
        return refundService.refund(reqJson);
    }


    @PostMapping("/v1/refundquery")
    public String refundquery(@RequestBody JSONObject reqJson) {
        log.info("退款查询前端请求的参数：--------------------------------->>>{}",reqJson);
        return refundService.refundquery(reqJson);
    }


}




